import request from '@/utils/request'

/** 医院管理列表 */
export function hospitalList(data) {
  return request({
    url: '/shop/hospitalSendList',
    method: 'post',
    data
  })
}

/** 添加医院管理 */
export function addHospital(data) {
  return request({
    url: '/shop/addHospitalSend',
    method: 'post',
    data
  })
}

/** 删除医院管理 */
export function delHospital(data) {
  return request({
    url: '/shop/delHospitalSend',
    method: 'post',
    data
  })
}

/** 编辑医院管理 */
export function updateHospital(data) {
  return request({
    url: '/shop/modifyHospitalSend',
    method: 'post',
    data
  })
}

/** 根据门店的id列表获取商品列表 */
export function getGoodsByIdList(data) {
  return request({
    url: '/shop/hospital/commodityDetail/list',
    method: 'post',
    data
  })
}

/** 渠道链接列表*/
export function hospitalChannelLinkList(data) {
  return request({
    url: '/shop/hospitalChannelLinkList',
    method: 'post',
    data
  })
}

/** 新增渠道链接*/
export function addHospitalChannelLink(data) {
  return request({
    url: '/shop/addHospitalChannelLink',
    method: 'post',
    data
  })
}

/** 获取主院-分院名称*/
export function getMainAndOtherHospitalName(id) {
  return request({
    url: '/shop/getMainAndOtherHospitalName/' + id,
    method: 'post'
  })
}

/** 修改渠道链接*/
export function updateHospitalChannelLink(data) {
  return request({
    url: '/shop/updateHospitalChannelLink',
    method: 'post',
    data
  })
}

/** 删除渠道链接*/
export function deleteHospitalChannelLink(id) {
  return request({
    url: '/shop/deleteHospitalChannelLink/' + id,
    method: 'post'
  })
}

/** 删除渠道链接*/
export function getHospitalStoreGoodsMessage(data) {
  return request({
    url: '/shop/getHospitalStoreGoodsMessage',
    method: 'post',
    data
  })
}

